
<g:if test="${!flash.message}">
        <g:set var="entityName" value="${message(code: 'score.label', default: 'Score')}" />
            <g:form method="post" action="doprint" >
          
                <g:hiddenField name="classesId" value="${classes?.id}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="student">年级：</label>
                                </td>
                                <td valign="top" class="value">
                                      
                                 <g:lookupSelect id="grade" name="grade" realm="grades" value="${classes?.grade}"/>
 
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="course">班级：</label>
                                </td>
                                <td valign="top" class="value">
                                <g:lookupSelect id="team" name="team" realm="teams" value="${classes?.team}"/>
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sex">学期：</label>
                                </td>
                                <td valign="top" class="value">
                                    <g:radioGroup name="term" labels="['上学期','下学期']"  values="['上学期','下学期']" value="${term}" >
                                    ${it.label} ${it.radio}
                                    </g:radioGroup>

                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sex">科目：</label>
                                </td>
                                <td valign="top" class="value">
                                    <g:each in="${org.grails.plugins.lookups.Lookup.codeList('courses')}" var="per">
                                         <input type="checkbox" name="course" id="course" value="${per.value}"    />${per.value}
                                    </g:each>

                                </td>
                            </tr>                         
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="doprint" value="${message(code: 'default.button.save.label', default: 'Save')}" /></span>
                  
                </div>
            </g:form>
</g:if>